FROM dev.k2data.com.cn:5001/isuper/java-oracle:jdk_7

WORKDIR /opt/k2data

####RUN mkdir -p /opt/k2data/fields-files/
####RUN mkdir -p /opt/k2data/fieldgroupinfotable/

ADD target/k2de-kafka-consumer-1.0-SNAPSHOT.jar /opt/k2data/
ADD docker/entrypoint.sh /opt/k2data/entrypoint.sh

ENTRYPOINT ["bash","entrypoint.sh"]
CMD []

ARG branch
ARG commit
ARG buildtime
ARG owner
LABEL branch=$branch \
        commit=$commit \
        buildtime=$buildtime \
        owner=$owner
